package com.lin.lostandfound.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lin.lostandfound.bean.LostThings;
import com.lin.lostandfound.provider.SQLSelectProvider;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.SelectProvider;

@Mapper
public interface LostThingsMapper extends BaseMapper<LostThings> {
    /**
     * 显示上一条
     * 或者
     * 下一条信息
     * @param id
     * @param next
     * @return
     */
    @SelectProvider(value = SQLSelectProvider.class,method = "next")
    LostThings next(Long id, boolean next);
}
